Skip to content

Address pytest warnings - #36

Merged
caitlinadams merged 4 commits into
mainfrom
bugfix/pytestwarnings
Aug 28, 2026
Merged

caitlinadams merged 4 commits into
mainfrom
bugfix/pytestwarnings

Conversation

@caitlinadams

Copy link
Copy Markdown
Collaborator

This PR addresses pytest warnings related to:

  • using classes starting with the word "Test" (these need to be ignored by pytest to avoid the warning)
  • explicitly stating whether to use gdal exceptions to address "FutureWarning: Neither gdal.UseExceptions() nor gdal.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default." warning


@dataclass
class TestDem:
__test__ = False # Stop pytest from checking (done because the class starts with the word "Test")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@arcisad arcisad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! :D

@abradley60 abradley60 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good - just noting the environment file needs to have the geospatial libs moved as like my last PR

@caitlinadams
caitlinadams merged commit dff8608 into main Aug 28, 2026
3 checks passed
@caitlinadams
caitlinadams deleted the bugfix/pytestwarnings branch August 28, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants